import request from '../request'

export default {
  getWms(cmd, data) {
    return request.post("/voucher/list", {
      cmd: cmd,
      data: {
        settings: "ax_wms_warehouse.xml",
        dir: "warehouse.warehouseList",
        ...data
      }
    })
  },
  locationApi(cmd, data) {
    return request.post("/voucher/list", {
      cmd: cmd,
      data: {
        settings: "ax_wms_location.xml",
        dir: "warehouse.warehouseList",
        ...data
      }
    })
  }
}